package cn.hoichun.news.Service;

import cn.hoichun.news.Domain.Article;

import java.util.List;

/**
 * @author Hoichun
 */
public interface IArticleService {

    /**
     * @return 随机显示10条文章
     */
    List<Article> getRandomArticles(int pageSize);

    Article getArticleById(int id);

    List<Article> searchArticlesUsingLike(List<String> wordList);

    List<Article> searchArticlesUsingIndexWordOderBy(List<String> wordList, String orderMode, int size,int articleId);

    List<Article> searchArticlesUsingFulltextIndex(String word);

    String getArticleKeyword(int articleId);

    List<Article> getArticlesByUserMatrix(int userId);
}